package com.nebula.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nebula.common.ServerResponse;
import com.nebula.service.IUserGroupService;

@Controller
@RequestMapping("/userGroups")
public class UserGroupsController {
	
	@Autowired
	private IUserGroupService userGroupService;
	
	@RequestMapping("/info")
	@ResponseBody
	public ServerResponse getInfo(){
		return userGroupService.getUserGroupInfo();
	}
}
